﻿using markdown_picture_packer.common.constants;
using markdown_picture_packer.common.enums;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace markdown_picture_packer.frontend.panels
{
    public class MakeNamePanel : BasePanel
    {
        private ComboBoxPanel MakeNameCbp;
        public override void InitComponent()
        {
            MakeNameCbp = new ComboBoxPanel(
                "命名方式",
                new string[] {
                    EnumDictionary.MAKE_NAME_TYPE[MakeNameType.NUMBER],
                    EnumDictionary.MAKE_NAME_TYPE[MakeNameType.ORIGINAL],
                    EnumDictionary.MAKE_NAME_TYPE[MakeNameType.RANDOM]
                    }
                );
        }
        public override void InitSize(int newWdith, int newHeight)
        {
            MakeNameCbp.Size = new Size(newWdith, newHeight);
        }
        public override void InitLocation()
        {
            MakeNameCbp.Location = new Point(0, 0);
        }
        public override void AddComponent()
        {
            Controls.Add(MakeNameCbp);
        }
        public string GetSelectText()
        {
            return MakeNameCbp.GetText();
        }
    }
}
